import request from './request.js';


export default {
  competitionTeamList(_data) {
    //比赛名单
    return request({
      url: '/system/competition/competitionTeamList?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },
  
  exportFinanceListTemplate(_data) {
    //导出
    return request({
      url: '/system/finance/exportFinanceListTemplate?data=' + JSON.stringify(_data),
      method: 'get',
      responseType: 'blob',
    });
  },

  detailsv2DetailDto(_data) {
    //管理员列表初始化
    return request({
      url: '/system/user/detailsv2?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },
 
  trendsDetailDto(_data) {
    //管理员列表初始化
    return request({
      url: '/system/dynamic/trendsDetailDto?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },
  
 
  removdynamic(_data) {
    //管理员列表初始化
    return request({
      url: '/system/dynamic/remove?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },


  userPage(_data) {
    //管理员列表初始化
    return request({
      url: '/api/gkAppVersion/page?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },

  userSync(_data) {
    //修改
    return request({
      url: '/api/gkAppVersion/update?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },

  initAdminPage(_data) {
    //管理员列表初始化
    return request({
      url: '/api/gkAdminCenter/adminList?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },

  adminDetail(_data) {
    //管理员详情
    return request({
      url: '/api/gkAdminCenter/adminInfo?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },

  createAdmin(_data) {
    //添加管理员
    return request({
      url: '/api/gkAdminCenter/insert?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },

  editAdmin(_data) {
    //编辑管理员
    return request({
      url: '/api/gkAdminCenter/update?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },

  removeAdmin(_data) {
    //删除管理员
    return request({
      url: '/api/gkAdminCenter/delete?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },


  roleList(_data) {
    //身份列表初始化
    return request({
      url: '/api/gkAdminRole/roleList?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },

  getAllRoles() {
    //所有身份列表
    return request({
      url: '/api/role/getAllRoles',
      method: 'get',
    });
  },

  createRole(_data) {
    //添加角色
    return request({
      url: '/api/gkAdminRole/createRole?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },

  editRole(_data) {
    //编辑角色
    return request({
      url: '/api/gkAdminRole/editRole?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },

  removeRole(_data) {
    //删除角色
    return request({
      url: '/api/gkAdminRole/removeRole?data=' + JSON.stringify(_data),
      method: 'post',
    });
  },

  getBindingPermission(_data) {
    //获取角色已绑定权限
    return request({
      url:
        '/api/gkAdminRole/getBindingPermission?data=' + JSON.stringify(_data),
      method: 'get',
    });
  },

  distributionPermissionForRole(_data) {
    //分配角色权限
    return request({
      url:
        '/api/gkAdminRole/distributionPermissionForRole?data=' +
        JSON.stringify(_data),
      method: 'post',
    });
  },

  getMenuTree() {
    //获取所有菜单树
    return request({
      url: '/api/permission/getMenuTree',
      method: 'get',
    });
  },

  getAdminWithTheMenuTree() {
    //获取用户拥有的菜单树
    return request({
      url: '/api/permission/getAdminWithTheMenuTree',
      method: 'get',
    });
  },




  //客服列表
  customerlist (_data, html) {
    return request({
      url: '/system/customer/customerlist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  //删除客服
  deletecustomer (_data, html) {
    return request({
      url: '/system/customer/deletecustomer?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },

    //添加客服
    insertcustomer (_data, html) {
      return request({
        url: '/system/customer/insertcustomer?data=' + JSON.stringify(_data),
        method: 'post',
        data: html,
      });
    },

      //修改客服
      updatecustomer (_data, html) {
    return request({
      url: '/system/customer/updatecustomer?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },


  competitiondetail (_data, html) {
    return request({
      url: '/system/competition/competitiondetail?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  playerdetail (_data, html) {
    return request({
      url: '/system/teamv2/playerdetail?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  competitionlist (_data, html) {
    return request({
      url: '/system/competition/competitionlist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  teamlistv2 (_data, html) {
    return request({
      url: '/system/teamv2/teamlistv2?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  partnersList (_data, html) {
    return request({
      url: '/system/partners/partnersList?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  insert (_data, html) {
    return request({
      url: '/system/partners/insert?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  userinfo (_data, html) {
    return request({
      url: '/system/user/userinfo?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  delete (_data, html) {
    return request({
      url: '/system/partners/delete?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  delluser (_data, html) {
    return request({
      url: '/system/user/delluser?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  userlist (_data, html) {
    return request({
      url: '/system/user/userlist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  dynamiclist (_data, html) {
    return request({
      url: '/system/dynamic/dynamiclist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  competitiondetail (_data, html) {
    return request({
      url: '/system/competition/competitiondetail?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  login (_data, html) {
    return request({
      url: '/system/login/login?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  updatenews (_data, html) {
    return request({
      url: '/system/news/updatenews?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  insertarticle (_data, html) {
    return request({
      url: '/system/article/insertarticle?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  teamv2audit (_data, html) {
    return request({
      url: '/system/teamv2/audit?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  audit (_data, html) {
    return request({
      url: '/system/user/audit?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  news (_data, html) {
    return request({
      url: '/system/news/news?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  newsdetail (_data, html) {
    return request({
      url: '/system/news/newsdetail?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  update (_data, html) {
    return request({
      url: '/system/partners/update?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  articlelist (_data, html) {
    return request({
      url: '/system/article/articlelist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  updateprice (_data, html) {
    return request({
      url: '/system/price/updateprice?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  deletearticle (_data, html) {
    return request({
      url: '/system/article/deletearticle?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  teamdetailv2 (_data, html) {
    return request({
      url: '/system/teamv2/teamdetailv2?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  deletenews (_data, html) {
    return request({
      url: '/system/news/deletenews?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  financelist (_data, html) {
    return request({
      url: '/system/finance/financelist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  balluserlist (_data, html) {
    return request({
      url: '/system/user/balluserlist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  updatearticle (_data, html) {
    return request({
      url: '/system/article/updatearticle?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  newsInsertnews (_data, html) {
    return request({
      url: '/system/news/insertnews?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  ZgetCityPriceListDto (_data, html) {
    return request({
      url: '/system/cityPrice/getCityPriceListDto?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  ZcityPrice (_data, html) {
    return request({
      url: '/system/cityPrice/editAdd?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  ZcityPriceremove (_data, html) {
    return request({
      url: '/system/cityPrice/remove?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  ZbannerL (_data, html) {
    return request({
      url: '/system/banner/bannerlist?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  ZbannerDelete (_data, html) {
    return request({
      url: '/system/banner/deletebanner?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  insertbanner(_data, html) {
    return request({
      url: '/system/banner/insertbanner?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },
  bannerList (_data, html) {
    return request({
      url: '/system/banner/advertiseList?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
  advertiseUpdate(_data, html) {
    return request({
      url: '/system/banner/advertiseUpdate?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
//邀请码列表
invitationCodeList (_data, html) {
    return request({
      url: '/api/invitationCode/list?data=' + JSON.stringify(_data),
      method: 'get',
      data: html,
    });
  },
//删除邀请码
  invitationCodeDelete (_data, html) {
    return request({
      url: '/api/invitationCode/remover?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },

  //删除邀请码
  invitationCodeaddEidt (_data, html) {
    return request({
      url: '/api/invitationCode/addEidt?data=' + JSON.stringify(_data),
      method: 'post',
      data: html,
    });
  },

  importTeam(_data) {
    //导出球队列表
    return request({
      url:
        '/system/teamv2/importTeam?data=' + JSON.stringify(_data),
      method: 'get',
      responseType: 'blob',
    });
  },

  importBalluserlist(_data) {
    //导出球员列表
    return request({
      url:
        '/system/user/importBalluserlist?data=' + JSON.stringify(_data),
      method: 'get',
      responseType: 'blob',
    });
  },

};
